using UnityEngine;
using UnityEngine.UI;

public class UIActivityPrize : MonoBehaviour
{
	public int itemId;

	public Text txtCount;

	public Image icon;

	public int count
	{
		set
		{
			if (txtCount != null)
			{
				txtCount.text = "x" + value.ToString();
			}
		}
	}

	public Vector2 position
	{
		set
		{
			icon.rectTransform.anchoredPosition = value;
			txtCount.rectTransform.anchoredPosition = new Vector2(value.x + 95f, value.y);
		}
	}

	private void Start()
	{
	}

	private void Update()
	{
	}

	public void SetVisible(bool visible)
	{
		if (txtCount != null)
		{
			txtCount.gameObject.SetActive(visible);
		}
		if (icon != null)
		{
			icon.gameObject.SetActive(visible);
		}
	}
}
